package com.ruoyi.wms.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.wms.domain.entity.stock.PurchaseRequestDetails;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 采购申请详情视图对象 wms_purchase_request_details
 *
 * @author 邓滔滔
 * @date 2024-11-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PurchaseRequestDetails.class)
public class PurchaseRequestDetailsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 关联的采购申请单ID
     */
    @ExcelProperty(value = "关联的采购申请单ID")
    private Long requestId;

    /**
     * 商品规格ID
     */
    @ExcelProperty(value = "商品规格ID")
    private Long skuId;

    /**
     * 申请数量
     */
    @ExcelProperty(value = "申请数量")
    private BigDecimal quantity;

    /**
     * 单价
     */
    @ExcelProperty(value = "单价")
    private BigDecimal price;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


    private ItemSkuVo itemSku;

}
